import com.one.www.Text;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石仲夏
 */
class Dog{
    //字段、属性  //定义在类中，方法的外边
    public String name;
    public int age;
    public String color;
    //方法
    public void doLike(){
        System.out.println(age+color+name+"喜欢吃鸡肉");
    }

    public static void main(String[] args) {
        System.out.println("Dog");
    }
}
public class Text2 {
    public static void main(String[] args) {
        //Text text =new Text();
        Text.num=20;
        Text.print();
        System.out.println(Text.num);
        //System.out.println(text.a);
    }
    public static void main3(String[] args) {
//        Text.print1();
//        Text text =new Text();
//        text.print();
    }
    public static void main2(String[] args) {
        System.out.println("Text2");
    }
    public static void main1(String[] args) {
        Dog dog = new Dog();
//        int a;
//        System.out.println(a);
        dog.age =3;
        dog.name ="小何";
        dog.color="黄色";
        dog.doLike();
    }

}
